package cn.saas.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @Title :
 * @date : 2021/10/27 11:52
 */
@Entity(tableName = "student")
public class StudentDb {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "studentId")
    private long studentId;
    private String name;
    private int age;

    public long getStudentId() {
        return studentId;
    }

    public void setStudentId(long studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
